package Zhouliu;
public class Work2 {
    public static void main(String[] args){
        //创建对象并实例化对象
        Work1 test=new Work1();//work1代表方法名
         test.niu1=15;
      test.day=20;
     test.niu2=20;
     test.day1=10;
     //每天长得多少量
        test .type=(test.niu1*test.day- test.day1* test.niu2)/(test.day- test.day1);
        //原来有多少牛
        test .niusum= (test.niu1*test.day- test.niu2* test.day1);
        //调用重载的无参方法
        test.print( );
    }

}
